using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class vt_AcctBAlMap : EntityTypeConfiguration<vt_AcctBAl>
    {
        public vt_AcctBAlMap()
        {
            // Primary Key
            this.HasKey(t => t.acct);

            // Properties
            this.Property(t => t.acct)
                .IsRequired()
                .HasMaxLength(40);

            // Table & Column Mappings
            this.ToTable("vt_AcctBAl");
            this.Property(t => t.acct).HasColumnName("acct");
            this.Property(t => t.total).HasColumnName("total");
        }
    }
}
